package web.kx;

import org.htmlparser.util.ParserException;

public class Test {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		String s="url[1]:http://wap.kaixin001.com/cafe/menu.php?cafeid=11822114&orderid=857179609&verify=_15198440_1272831171_dee103a87adecc6e31c876c999b36124_kx&url=%2Fcafe%2Findex.php";
		int indexOf = s.indexOf("cafeid=");
		int indexEnd = s.indexOf("&", indexOf);
		String cafeid = s.substring(indexOf+"cafeid=".length(), indexEnd);
		System.out.println(cafeid);
		}
}
